home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_07
/
2n07046b
< prev
next >
Wrap
Text File
|
1991-04-08
|
528b
|
28 lines
/* Dan Goldberg, 2/91 */
/* MENU.C */
/* Menu program skeleton for quick and dirty menus. */
/* Good for work at client sites, for example */
#include <stdio.h>
main ()
{
int el;
printf("\nYour Customer's Menu\n\n");
printf("1. First LARGE Program\n");
printf("2. Second LARGE Program\n");
printf("3. Quit\n");
printf("\nEnter Menu Choice => ");
scanf("%d",&el);
if ( el <= 3 )
_exit(el);
else
printf("\nInvalid menu choice!\n");
_exit(255);
}